using UnityEngine;
using QFramework;
using UnityEngine.Tilemaps;
using HutongGames.PlayMaker.Actions;

namespace ProjectindieFarm
{
	public partial class Gridconller : ViewController
	{
		public Tilemap tilemap;
		private EasyGrid<SoilData> mShowGrid = new EasyGrid<SoilData>(10,10);

		public EasyGrid<SoilData> ShowGrid => mShowGrid;
		public TileBase mPen;
		void Start()
		{
			mShowGrid[0,0] = new SoilData();

            mShowGrid.ForEach ((x, y, show) =>
			{
				if(show !=null )
				tilemap.SetTile(new Vector3Int(x,y),mPen);
			});
			// Code Here
		}
	}
}
